package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: lutongtong
 * @Date: 2024/09/26/19:08
 * @Description:订单详情信息
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 根据订单ID查询订单中的套餐信息
     * @param id
     * @return
     */
    @Select("select * from setmeal_dish where setmeal_id = #{id}")
    List<OrderDetail> getByOrderId(Long id);
}
